// import express from "express";
// import data from "./data.json";
const express = require("express");
const data = require("./data.json");
const app = express();
app.get("/api/seller",(req,res)=>{
    // res.header("Access-Control-Allow-Origin", "*");
    res.json({
        data:data.seller,
    });
});
app.get("/api/goods",(req,res)=>{
    // res.header("Access-Control-Allow-Origin", "*");
    res.json({
        data:data.goods,
    });
});
app.listen(3009,()=>{
    console.log("http://localhost:3009 服务启动成功，正在监听3009端口...");
});